home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / appletalk / netatalk / afs / afskrbsrc.sit.hqx / AFS Kerberos 1.0B0 / uam.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-04  |  3.2 KB  |  114 lines

  1. /*
  2.  * Copyright (c) 1990 Regents of The University of Michigan.
  3.  * All Rights Reserved.
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software
  6.  * and its documentation for any purpose and without fee is hereby
  7.  * granted, provided that the above copyright notice appears in all
  8.  * copies and that both that copyright notice and this permission
  9.  * notice appear in supporting documentation, and that the name of
  10.  * The University of Michigan not be used in advertising or
  11.  * publicity pertaining to distribution of the software without
  12.  * specific, written prior permission. This software is supplied as
  13.  * is without expressed or implied warranties of any kind.
  14.  *
  15.  *    ITD Research Systems
  16.  *    University of Michigan
  17.  *    535 W. William Street
  18.  *    Ann Arbor, Michigan
  19.  *    +1-313-936-2652
  20.  *    netatalk@terminator.cc.umich.edu
  21.  */
  22. #define OP_UAM_OPEN    1
  23. #define OP_UAM_CLOSE    2
  24. #define OP_UAM_PWDDLOG    3
  25. #define OP_UAM_LOGIN    4
  26.  
  27. #define UAM_LOGINCODE    128+56
  28. #define UAM_VERSION    1000
  29. #define VERSION_STR    1001
  30.  
  31. #define ACUR_WATCH        1000
  32.  
  33. #define ALRT_LOCALERR        1000
  34. #define ALRT_REMOTEERR        1001
  35. #define ALRT_AUTHERR        1002
  36. #define ALRT_REALMERR        1003
  37. #define ALRT_PWMISMATCH        1004
  38. #define ALRT_SETPWOK        1005
  39. #define ALRT_SETPWERR        1006
  40. #define ALRT_OLDPWERR        1007
  41. #define ALRT_SETPWNOTSUPP    1008
  42. #define ALRT_NO_MORE_SESSIONS    1009
  43. #define ALRT_AUTHOK        4
  44. #define ALRT_NOSERVERS        5
  45. #define ALRT_BADROM        6
  46. #define ALRT_FILEERR        7
  47. #define ALRT_BADVERS        8
  48. #define ALRT_NOMEMORY        9
  49.  
  50. #define LOG_PASSWD_DLOG    0
  51. #define WAIT_DLOG    2001
  52. #define UAM_PASSWD_DLOG    2002
  53. #define SETPW_DLOG    2003
  54. #define SELECT_DLOG    2
  55.  
  56. #define DLOG_OK    1
  57. #define DLOG_CANCEL    2
  58. #define DLOG_TOPTEXT    3
  59. #define DLOG_NAME    4
  60. #define DLOG_LIST    4
  61. #define DLOG_NAMEBOX    5
  62. #define DLOG_PASSWD    6
  63. #define DLOG_PASSWDBOX    7
  64. #define DLOG_REGUSER    8
  65. #define DLOG_SETPASSWD    9
  66. #define DLOG_GUEST    11
  67.  
  68. #define DLOG_OLDPW    5
  69. #define DLOG_NEWPW_TEXT    6
  70. #define DLOG_NEWPW    7
  71.  
  72. #define CHAR_ENTER    3
  73. #define CHAR_DELETE    8
  74. #define CHAR_RETURN    13
  75. #define CHAR_ESC    27
  76. #define CHAR_MAXCTRL    31
  77.  
  78. #define CHARMASK_BULLET    0xa5
  79. #define KEYMASK_BULLET    (0x1c << 8)
  80.  
  81. #define MAXNAMELEN    MAX_K_NAME_SZ
  82. #define MAXPASSWDLEN    8
  83. #define MINPASSWDLEN    1
  84. #define RECV_SIZE    4 * 578
  85. #define SEND_SIZE    578
  86.  
  87. #define QDSIZE    206
  88.  
  89. #define AFPSRVRINFO_PASSWD    (1<<1)
  90. #define AFP_AFSCHANGEPW        102
  91. #define NBPTYPE_AFP        "\pAFPServer"
  92.  
  93. /*
  94.  * function prototypes
  95.  */
  96. int    dologin( short initial, short doalerts, AFPLoginPrm *alpp, Str255 name,
  97.         char *passwd, short *srefnum, des_cblock rsesskey );
  98. short    wait_for_completion( XPPParmBlkPtr xppp );
  99. void    placewindow( ResType rtype, short rid );
  100. void    doalert( short alert );
  101. void    lncase( char *q, int n );
  102. DialogPtr    passwddialog( char *name, char *passwd, Handle iconhdl, short dlogid,
  103.         Boolean in_uam, short curr_srefnum, Boolean dosetpw );
  104. void    enablebutton( DialogPtr dp, short button, Boolean enable, Boolean frame );
  105. DialogPtr    setpwdialog( char *name, char *oldpw, char *newpw );
  106. void    setpw( char *name, short curr_srefnum );
  107. short    lookup_address( char *obj, char *type, char *zone, AddrBlock *addrp );
  108. short    get_server_status( short iorefnum, AddrBlock addr,
  109.         Handle *iconhdl, Boolean *setpwsupported );
  110. short    get_sesskey( short srefnum, des_cblock sesskey );
  111. void    mysetup_A5( Ptr globalmem, long *newA5p );
  112. void    mysetup_QD( long oldA5 );
  113. void    myrestore_A5( long oldA5 );
  114.